#pragma strict


function Update () {

	if(gameObject.tag == "Selected"){
		animation.Play();
	}
	else {
		animation.Stop();
		transform.rotation.y = 0;
		transform.rotation.z = 0;
		}	
	
}